Window. Open and window. showmodaldialog are both used to open subwindows.
In the open mode, a subwindow is opened directly. However, a subwindow is not displayed on IE7 and IE8, but is opened on a new tab. This poses two problems. One is that the
$ ("# Parent window element ID", specify parent parent.doc ument );
The corresponding criptlistener is paipaiparent.doc ument. getElementByIdx_x ("parent window element ID ");
Method for retrieving the element of the parent window: $
Recently, when I was working on a web project, I encountered the function of passing parameters across pages, that is, to bring the content of the current page to a new subform. The previous method was to pass an id, then read the database content
with window.open Open a window, how to make it always on top of the parent window, unless you click on its own set of the Close button, I tried onblur= "Self.focus" seems to be no use.
You can use:
Opened=window.open ("Demo.html", "Demo",
$ ("#父窗口元素ID", window.parent.document);The corresponding JavaScript version is window.parent.document.getElementByIdx_x ("Parent window Element ID");The element method to take the parent window: $ (selector, window.parent.document);Then you take the
This article mainly introduces the js window. showModalDialog and window. the example analyzes window. showModalDialog and window. the definition, function, and usage skills of the open method. if you need it, refer to the example in this article to
JavaScript pop-up window method summary, javascript pop-up window
The examples in this article summarize common JavaScript pop-up window methods for your reference and hope to help you. The detailed method is as follows:
1. No prompt to refresh the
Introduction to the method for assigning values to each other in the JS parent window. For more information, see $ ("# parent window element ID", w.w.parent.doc ument );
The corresponding criptlistener is paipaiparent.doc ument. getElementByIdx_x ("
One of the JavaScript browser objects, Window object explanation, javascriptwindow
JavaScript provides a set of window-oriented objects to implement browser window access control. JavaScript defines six important objects:
Window object indicates the
Show borders only:
The above method does not work. You can only use the systemparametersinfo + spi_setdragfullwindows parameter to set whether to display the content in the window when moving the window:Systemparametersinfo (spi_setdragfullwindows,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.